package com.easyfile.easyfilemaster.entity.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author chenpeman
 * @date 2022年05月19日 13:06
 */
@Data
public class MoveFilesDto {
    private Long userId;
    @NotNull(message = "源文件夹不为空")
    @Min(value = 1000000000000000000L,message = "文件夹ID不正确")
    private Long fromFolderId;
    @NotNull(message = "目标文件夹不为空")
    @Min(value = 1000000000000000000L,message = "文件夹ID不正确")
    private Long toFolderId;
    @NotNull(message = "请至少选择一个文件")
    private List<Long> ids;
}
